package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品分类对象 tb_category
 * 
 * @author ruoyi
 * @date 2022-06-01
 */
public class TbCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类ID */
    private Integer id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Integer goodsNum;

    /** 是否显示:0 不显示; 1显示 */
    @Excel(name = "是否显示:0 不显示; 1显示")
    private Integer isShow;

    /** 排序 */
    @Excel(name = "排序")
    private Integer seq;

    /** 上级ID */
    @Excel(name = "上级ID")
    private Integer parentId;

    /** 模板ID */
    private Integer templateId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGoodsNum(Integer goodsNum) 
    {
        this.goodsNum = goodsNum;
    }

    public Integer getGoodsNum() 
    {
        return goodsNum;
    }
    public void setIsShow(Integer isShow) 
    {
        this.isShow = isShow;
    }

    public Integer getIsShow() 
    {
        return isShow;
    }
    public void setSeq(Integer seq) 
    {
        this.seq = seq;
    }

    public Integer getSeq() 
    {
        return seq;
    }
    public void setParentId(Integer parentId) 
    {
        this.parentId = parentId;
    }

    public Integer getParentId() 
    {
        return parentId;
    }
    public void setTemplateId(Integer templateId) 
    {
        this.templateId = templateId;
    }

    public Integer getTemplateId() 
    {
        return templateId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("goodsNum", getGoodsNum())
            .append("isShow", getIsShow())
            .append("seq", getSeq())
            .append("parentId", getParentId())
            .append("templateId", getTemplateId())
            .toString();
    }
}
